package ali;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: my
 * @BelongsPackage: ali
 * @Author: ji ge
 * @CreateTime: 2024-02-04  12:21
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
@RefreshScope
public class configClientController {
    @Value("${config.info}")
    private String configInfo;

    @GetMapping("/configInfo")
    public String configInfo(){
        return configInfo;
    }
}
